package com.example.computer_exam_training_sys.mapper;

import com.example.computer_exam_training_sys.entity.CoursesInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CoursesMapper {

    @Select("SELECT * from courses")
    public List<CoursesInfo> findAll();

    @Select("SELECT * FROM courses where course_id=#{courseId};")
    public CoursesInfo findById(Integer courseId);
}
